#ifndef STRUCT_H_
# define STRUCT_H_
# include <stdlib.h>
# include <stdio.h>
# include <SDL/SDL.h>
# include <SDL/SDL_image.h>
# include <time.h>

typedef struct  couple
{
  int			x;
  int			y;
}		        s_couple;

typedef struct	weapon
{
  int			damage;
  SDL_Surface   *skin;
  int			speed;
  s_couple		size;
  s_couple		coord;
  int			ally;
  int			alive;
}		        s_weapon;

typedef struct	wlist
{
  s_weapon		*weapon;
  struct wlist		*next;
}		        s_wlist;

typedef struct	monster
{
  int			health;
  s_couple		coord;
  s_couple		size;
  s_weapon		*weapon;
  int			speed;
  int			alive;
  int			isboss;
  SDL_Surface		*img;
}			s_monster;

/*
** Monster list.
*/
typedef struct	mlist
{
  s_monster		*monster;
  struct mlist		*next;
}		        s_mlist;

typedef struct	player
{
  int			health;
  s_couple		coord;
  s_couple		size;
  int			speed;
  SDL_Surface		**skin;
  int			alive;
  s_wlist		*weapons;
  s_weapon		*currentw;
}			s_player;

typedef struct back
{
  int			width;
  int			height;
  int			x;
  int			y;
  SDL_Surface		*img1;
  SDL_Surface		*img2;
}		        s_back;

#endif /* !STRUCT_H_ */
